package com.wash.shoes.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wash.shoes.domain.dto.RegionDistributorDto;
import com.wash.shoes.domain.vo.RegionDistributorVo;
import com.wash.shoes.entity.RegionDistributorPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jianguoli
* @description 针对表【os_region_distributor(分销商,按照区域分销)】的数据库操作Mapper
* @createDate 2025-03-10 14:47:55
* @Entity generator.domain.RegionDistributor
*/
public interface RegionDistributorMapper extends BaseMapper<RegionDistributorPo> {

    /**
     *
     * @param page
     * @param regionDistributorDto
     * @return 分页查询数据
     */
    List<RegionDistributorVo> pageList(@Param("page") Page<RegionDistributorVo> page, @Param("regionDistributorDto") RegionDistributorDto regionDistributorDto);

    /**
     *
     * @param userId
     * @return 查询用户的信息
     */
    RegionDistributorPo getByUserId(@Param("userId") String userId);
}




